using System;
using System.Collections.Generic;
using System.Text;

using NSimpleDB.Service.VistaDb.QueryProcessing.Compiler.AST;

namespace NSimpleDB.Service.VistaDb.QueryProcessing.Compiler
{
    internal class QueryCompiler
    {
        public string CompileToSql(string domainTablename, string query)
        {
            Query q = new QueryParser().Parse(query);
            return new SqlCodeGenerator().GenerateQueryCode(domainTablename, q);
        }
    }
}
